package com.ybzl.mini.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ybzl.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.List;


/*
 * Desc：商品表实体类
 * @Author jiaxin
 * @Company asiainfo.com
 * @Since  2024-06-30 15:57:17.258
 */
@Data
@TableName(value = "mini_good")
public class MiniGood extends BaseEntity {
    /**
     * 商品主键
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 商品名称
     */
    @TableField(value = "name")
    private String name;
    /**
     * 商品名称
     */
    @TableField(value = "url")
    private String url;
    /**
     * 商品原价
     */
    @TableField(value = "price")
    private String price;
    /**
     * 已售多少件
     */
    @TableField(value = "mai")
    private String mai;

    /**
     * 促销价格
     */
    @TableField(value = "now_price")
    private String nowPrice;
    /**
     * 商品类型
     */
    @TableField(value = "type")
    private String type;

    @TableField(exist = false)
    private String typeName;

    /**
     * 商品二级分类
     */
    @TableField(value = "type_two")
    private String typeTwo;

    @TableField(exist = false)
    private String typeTwoName;

    /**
     * 商品说明
     */
    @TableField(value = "info")
    private String info;

    @TableField(exist = false)
    private List<MiniGoodPics> pics;


    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 0正常1停用
     */
    @TableField(value = "status")
    private String status;
}
